#include "StdAfx.h"
#include "UIStage.h"

UIStage::UIStage(void)
{
}

UIStage::~UIStage(void)
{
}

void UIStage::SceneRun()
{
	std::vector<UIScene*>::iterator iter_pos;
	for(iter_pos = m_UISceneVec.begin(); iter_pos != m_UISceneVec.end(); ++iter_pos)
	{
		(*iter_pos)->Run();
	}

}
void UIStage::CtrlRun()
{
	std::vector<UIControl*>::iterator iter_pos;
	for(iter_pos = m_UICtrlVec.begin(); iter_pos != m_UICtrlVec.end(); ++iter_pos)
	{
		(*iter_pos)->Run();
	}
}
void UIStage::Run()
{
	Frame();
	Render();
	CtrlRun();
	SceneRun();
}

void UIStage::Release()
{

}

void UIStage::Frame()
{

}

void UIStage::Render()
{

}

void UIStage::InsertUIScene( UIScene* pUScene )
{
	m_UISceneVec.push_back(pUScene);
}

void UIStage::InsertUIControl( UIControl* pUICtrl )
{
	m_UICtrlVec.push_back(pUICtrl);
}

